﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using avemeGame01.SpriteClasses;

namespace avemeGame01.GameObjects
{
    public abstract class Character
    {
        #region Fields

        // Animated sprite of this character with all its animations
        protected AnimatedSprite animatedSprite;
        // The direction vector for this character
        protected Vector2 direction;
        // The velocity for of this character
        protected float velocity;

        #endregion

        #region Properties

        /// <summary>
        /// The direction of this character. Needs normalizing when used to prevent diagonal movement glitch.
        /// </summary>
        public Vector2 Direction
        {
            get { return direction; }
            set { direction = value; }
        }

        /// <summary>
        /// The speed at which the character moves.
        /// </summary>
        public float Velocity
        {
            get { return velocity; }
            set { velocity = value; }
        }

        #endregion
    }
}